package com.navajo.web.business.view.filesearch.view;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import ru.xpoft.vaadin.VaadinView;

import com.google.common.eventbus.EventBus;
import com.navajo.web.core.ui.UIBuilder;
import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.ui.NativeButton;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;

@Component
@Scope("prototype")
@VaadinView("FILESEARCHVIEW")


public class FileSearchView extends VerticalLayout implements View{
    private TextField tfName = UIBuilder.textField("FileSearch");

    @Autowired
    EventBus          eventBus;



    public FileSearchView() {
    }



    @Autowired
    public void generate() {
        TabSheet tabSheet = new TabSheet();
        tabSheet.addTab(new NativeButton("xxx"), "Navigation1");
        addComponent(tabSheet);
        addComponent(tfName);
    }



    @Override
    public void enter(ViewChangeEvent event) {

        
    }
}
